package dialogue;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JTextField;
import javax.swing.JFormattedTextField;
import java.text.Format;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JComboBox;

public class FenServices extends JFrame {

	private JPanel contentPane;
	private JLabel jLab_Fond;
	private JLabel jLab_TitreServices;
	private JLabel label;
	private JLabel jLab_FondModule;
	private JLabel jLab_Code;
	private JTextField jTxt_Code;
	private JLabel jLab_Designation;
	private JTextField jTxt_Designation;
	private JLabel jLab_Montant;
	private JLabel label_4;
	private JTextField textField_2;
	private JLabel label_5;
	private JFormattedTextField formattedTextField_1;
	private JButton jBtn_Ajouter;
	private JButton jBtn_Effacer;
	private JButton jBtn_Modifier;
	private JButton jBtn_Annuler;
	private JLabel jLab_Categorie;
	private JScrollPane JScrollPane;
	private JTable JTable;
	private JLabel jLab_Tri;
	private JComboBox<String> JComboBox_Tri;
	private JLabel jLab_Rechercher;
	private JTextField JTxt_Recherche;
	private JLabel jLab_Ajouter;
	private JLabel jLab_Rechercher1;
	private JLabel jLab_Modifier;
	private JLabel label_6;
	private JLabel label_7;
	private JLabel label_8;
	private JLabel label_9;
	private JLabel label_10;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FenServices frame = new FenServices();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FenServices() {
		setResizable(false);
		setSize(1027,582);
		setTitle("SWECOM SERVICES");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLocationRelativeTo(null);
		//setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		contentPane.add(getFormattedTextField_1());
		contentPane.add(getTextField_2());
		contentPane.add(getLabel_10());
		contentPane.add(getLabel_9());
		contentPane.add(getLabel_8());
		contentPane.add(getLabel_7());
		contentPane.add(getLabel_6());
		contentPane.add(getJLab_Modifier());
		contentPane.add(getJLab_Rechercher1());
		contentPane.add(getJLab_Ajouter());
		contentPane.add(getJTxt_Recherche());
		contentPane.add(getJLab_Rechercher());
		contentPane.add(getJComboBox_Tri());
		contentPane.add(getJLab_Tri());
		contentPane.add(getJScrollPane());
		contentPane.add(getJBtn_Annuler());
		contentPane.add(getJLab_Categorie());
		contentPane.add(getJBtn_Modifier());
		contentPane.add(getJBtn_Effacer());
		contentPane.add(getJBtn_Ajouter());
		contentPane.add(getJLab_Montant());
		contentPane.add(getJTxt_Designation());
		contentPane.add(getJLab_Designation());
		contentPane.add(getJTxt_Code());
		contentPane.add(getJLab_Code());
		contentPane.add(getJLab_FondModule());
		contentPane.add(getLabel());
		contentPane.add(getJLab_TitreServices());
		contentPane.add(getJLab_Fond());
		contentPane.add(getLabel_4());
		contentPane.add(getLabel_5());
	}
	private JLabel getJLab_Fond() {
		if (jLab_Fond == null) {
			jLab_Fond = new JLabel("");
			jLab_Fond.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/fondGeneral.jpg")));
			jLab_Fond.setBounds(0, 0, 1021, 554);
		}
		return jLab_Fond;
	}
	private JLabel getJLab_TitreServices() {
		if (jLab_TitreServices == null) {
			jLab_TitreServices = new JLabel("Gestion des services");
			jLab_TitreServices.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/Database.png")));
			jLab_TitreServices.setForeground(Color.DARK_GRAY);
			jLab_TitreServices.setFont(new Font("Segoe UI", Font.PLAIN, 24));
			jLab_TitreServices.setBounds(312, 26, 290, 64);
		}
		return jLab_TitreServices;
	}
	private JLabel getLabel() {
		if (label == null) {
			label = new JLabel("Ajout, Modification, Suppression, Consultation et Impression");
			label.setForeground(Color.DARK_GRAY);
			label.setFont(new Font("Segoe UI", Font.BOLD, 12));
			label.setBounds(387, 71, 381, 14);
		}
		return label;
	}
	private JLabel getJLab_FondModule() {
		if (jLab_FondModule == null) {
			jLab_FondModule = new JLabel("");
			jLab_FondModule.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/fondModule1.png")));
			jLab_FondModule.setBounds(255, 114, 741, 200);
		}
		return jLab_FondModule;
	}
	private JLabel getJLab_Code() {
		if (jLab_Code == null) {
			jLab_Code = new JLabel("Code");
			jLab_Code.setForeground(Color.DARK_GRAY);
			jLab_Code.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLab_Code.setBounds(278, 134, 54, 21);
		}
		return jLab_Code;
	}
	private JTextField getJTxt_Code() {
		if (jTxt_Code == null) {
			jTxt_Code = new JTextField();
			jTxt_Code.setForeground(new Color(26, 88, 131));
			jTxt_Code.setFont(new Font("Segoe UI", Font.PLAIN, 14));
			jTxt_Code.setColumns(10);
			jTxt_Code.setBackground(Color.WHITE);
			jTxt_Code.setBounds(363, 126, 218, 29);
		}
		return jTxt_Code;
	}
	private JLabel getJLab_Designation() {
		if (jLab_Designation == null) {
			jLab_Designation = new JLabel("Designation");
			jLab_Designation.setForeground(Color.DARK_GRAY);
			jLab_Designation.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLab_Designation.setBounds(278, 173, 74, 21);
		}
		return jLab_Designation;
	}
	private JTextField getJTxt_Designation() {
		if (jTxt_Designation == null) {
			jTxt_Designation = new JTextField();
			jTxt_Designation.setForeground(new Color(26, 88, 131));
			jTxt_Designation.setFont(new Font("Segoe UI", Font.PLAIN, 14));
			jTxt_Designation.setColumns(10);
			jTxt_Designation.setBackground(Color.WHITE);
			jTxt_Designation.setBounds(363, 165, 218, 29);
		}
		return jTxt_Designation;
	}
	private JLabel getJLab_Montant() {
		if (jLab_Montant == null) {
			jLab_Montant = new JLabel("Montant");
			jLab_Montant.setForeground(Color.DARK_GRAY);
			jLab_Montant.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLab_Montant.setBounds(620, 173, 74, 21);
		}
		return jLab_Montant;
	}
	private JLabel getLabel_4() {
		if (label_4 == null) {
			label_4 = new JLabel("Cat\u00E9gorie");
			label_4.setForeground(Color.DARK_GRAY);
			label_4.setFont(new Font("Segoe UI", Font.BOLD, 12));
			label_4.setBounds(647, 134, 74, 21);
		}
		return label_4;
	}
	private JTextField getTextField_2() {
		if (textField_2 == null) {
			textField_2 = new JTextField();
			textField_2.setForeground(new Color(26, 88, 131));
			textField_2.setFont(new Font("Segoe UI", Font.PLAIN, 14));
			textField_2.setColumns(10);
			textField_2.setBackground(Color.WHITE);
			textField_2.setBounds(731, 129, 218, 29);
		}
		return textField_2;
	}
	private JLabel getLabel_5() {
		if (label_5 == null) {
			label_5 = new JLabel("Prix unitaire");
			label_5.setForeground(Color.DARK_GRAY);
			label_5.setFont(new Font("Segoe UI", Font.BOLD, 12));
			label_5.setBounds(647, 178, 82, 21);
		}
		return label_5;
	}
	private JFormattedTextField getFormattedTextField_1() {
		if (formattedTextField_1 == null) {
			formattedTextField_1 = new JFormattedTextField((Format) null);
			formattedTextField_1.setForeground(new Color(26, 88, 131));
			formattedTextField_1.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			formattedTextField_1.setBounds(731, 170, 218, 29);
		}
		return formattedTextField_1;
	}
	private JButton getJBtn_Ajouter() {
		if (jBtn_Ajouter == null) {
			jBtn_Ajouter = new JButton("Ajouter");
			jBtn_Ajouter.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			jBtn_Ajouter.setBounds(429, 251, 104, 38);
		}
		return jBtn_Ajouter;
	}
	private JButton getJBtn_Effacer() {
		if (jBtn_Effacer == null) {
			jBtn_Effacer = new JButton("Effacer");
			jBtn_Effacer.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			jBtn_Effacer.setBounds(543, 251, 104, 38);
		}
		return jBtn_Effacer;
	}
	private JButton getJBtn_Modifier() {
		if (jBtn_Modifier == null) {
			jBtn_Modifier = new JButton("Modifier");
			jBtn_Modifier.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			jBtn_Modifier.setBounds(663, 251, 104, 38);
		}
		return jBtn_Modifier;
	}
	private JButton getJBtn_Annuler() {
		if (jBtn_Annuler == null) {
			jBtn_Annuler = new JButton("Annuler");
			jBtn_Annuler.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			jBtn_Annuler.setBounds(777, 251, 104, 38);
		}
		return jBtn_Annuler;
	}
	private JLabel getJLab_Categorie() {
		if (jLab_Categorie == null) {
			jLab_Categorie = new JLabel("Cat\u00E9gorie");
			jLab_Categorie.setForeground(Color.DARK_GRAY);
			jLab_Categorie.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLab_Categorie.setBounds(620, 131, 74, 21);
		}
		return jLab_Categorie;
	}
	private JScrollPane getJScrollPane() {
		if (JScrollPane == null) {
			JScrollPane = new JScrollPane();
			JScrollPane.setBounds(255, 318, 741, 177);
			JScrollPane.setViewportView(getJTable());
		}
		return JScrollPane;
	}
	private JTable getJTable() {
		if (JTable == null) {
			JTable = new JTable();
		}
		return JTable;
	}
	private JLabel getJLab_Tri() {
		if (jLab_Tri == null) {
			jLab_Tri = new JLabel("Trier la liste par");
			jLab_Tri.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/trier.png")));
			jLab_Tri.setForeground(Color.DARK_GRAY);
			jLab_Tri.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			jLab_Tri.setBounds(265, 506, 139, 42);
		}
		return jLab_Tri;
	}
	private JComboBox<String> getJComboBox_Tri() {
		if (JComboBox_Tri == null) {
			JComboBox_Tri = new JComboBox<String>();
			JComboBox_Tri.setForeground(Color.DARK_GRAY);
			JComboBox_Tri.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			JComboBox_Tri.setBounds(414, 518, 120, 20);
		}
		return JComboBox_Tri;
	}
	private JLabel getJLab_Rechercher() {
		if (jLab_Rechercher == null) {
			jLab_Rechercher = new JLabel("Rechercher");
			jLab_Rechercher.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/chercheAssiste.png")));
			jLab_Rechercher.setForeground(Color.DARK_GRAY);
			jLab_Rechercher.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			jLab_Rechercher.setBounds(635, 507, 139, 42);
		}
		return jLab_Rechercher;
	}
	private JTextField getJTxt_Recherche() {
		if (JTxt_Recherche == null) {
			JTxt_Recherche = new JTextField();
			JTxt_Recherche.setForeground(Color.DARK_GRAY);
			JTxt_Recherche.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			JTxt_Recherche.setColumns(10);
			JTxt_Recherche.setBackground(Color.WHITE);
			JTxt_Recherche.setBounds(755, 513, 218, 29);
		}
		return JTxt_Recherche;
	}
	private JLabel getJLab_Ajouter() {
		if (jLab_Ajouter == null) {
			jLab_Ajouter = new JLabel("Ajouter");
			jLab_Ajouter.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/ajouter.png")));
			jLab_Ajouter.setForeground(Color.WHITE);
			jLab_Ajouter.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLab_Ajouter.setBounds(10, 11, 130, 48);
		}
		return jLab_Ajouter;
	}
	private JLabel getJLab_Rechercher1() {
		if (jLab_Rechercher1 == null) {
			jLab_Rechercher1 = new JLabel("Rechercher");
			jLab_Rechercher1.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/chercher.png")));
			jLab_Rechercher1.setForeground(Color.WHITE);
			jLab_Rechercher1.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLab_Rechercher1.setBounds(10, 64, 159, 48);
		}
		return jLab_Rechercher1;
	}
	private JLabel getJLab_Modifier() {
		if (jLab_Modifier == null) {
			jLab_Modifier = new JLabel("Modifier");
			jLab_Modifier.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/modifier.png")));
			jLab_Modifier.setForeground(Color.WHITE);
			jLab_Modifier.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLab_Modifier.setBounds(10, 123, 130, 48);
		}
		return jLab_Modifier;
	}
	private JLabel getLabel_6() {
		if (label_6 == null) {
			label_6 = new JLabel("Supprimer");
			label_6.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/supprimer.png")));
			label_6.setForeground(Color.WHITE);
			label_6.setFont(new Font("Segoe UI", Font.BOLD, 12));
			label_6.setBounds(10, 175, 149, 48);
		}
		return label_6;
	}
	private JLabel getLabel_7() {
		if (label_7 == null) {
			label_7 = new JLabel(" Aper\u00E7u avant impression");
			label_7.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/apercu2.png")));
			label_7.setForeground(Color.WHITE);
			label_7.setFont(new Font("Segoe UI", Font.BOLD, 12));
			label_7.setBounds(10, 269, 218, 48);
		}
		return label_7;
	}
	private JLabel getLabel_8() {
		if (label_8 == null) {
			label_8 = new JLabel("Imprimer");
			label_8.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/imprimer2.png")));
			label_8.setForeground(Color.WHITE);
			label_8.setFont(new Font("Segoe UI", Font.BOLD, 12));
			label_8.setBounds(10, 328, 218, 48);
		}
		return label_8;
	}
	private JLabel getLabel_9() {
		if (label_9 == null) {
			label_9 = new JLabel("Exporter");
			label_9.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/exporter.png")));
			label_9.setForeground(Color.WHITE);
			label_9.setFont(new Font("Segoe UI", Font.BOLD, 12));
			label_9.setBounds(10, 387, 218, 48);
		}
		return label_9;
	}
	private JLabel getLabel_10() {
		if (label_10 == null) {
			label_10 = new JLabel("Retour au menu principal");
			label_10.setIcon(new ImageIcon(FenServices.class.getResource("/images/gestion/retour.png")));
			label_10.setForeground(Color.WHITE);
			label_10.setFont(new Font("Segoe UI", Font.BOLD, 12));
			label_10.setBounds(10, 488, 218, 48);
		}
		return label_10;
	}
}
